* {
  margin: 0;
  padding: 0;
}
:root {
  font-size: 15px;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: black;
}
header {
  display: flex;
  flex-flow: column;
  position: relative;
}
header > a {
  display: block;
  position: absolute;
  height: 120px;
  width: 100%;
  background: url('../imgs/headimg.jpg') no-repeat;
  background-position: 50%;
  background-size: auto 120px;
  text-indent: -9999;
}
header nav {
  margin-top: 120px;
  display: flex;
  justify-content: space-between;
  height: 40px;
  align-items: center;
  background-color: #333;
}
header nav ul {
  display: flex;
  margin-left: 20px;
}
header nav ul li:hover #app-qrcode {
  display: flex;
}
header nav ul li {
  margin: auto 8px;
  padding: auto 10px;
  position: relative;
}
header nav ul li a:first-child {
  color: #b0b0b0;
  font-size: 12px;
}
header nav ul li a:first-child:hover {
  color: white;
}
header nav ul li a + a #app-qrcode {
  position: absolute;
  box-shadow: 0 0 3px #ccc;
  width: 124px;
  display: none;
  top: 30px;
  left: -35px;
  background-color: white;
  justify-content: center;
}
header nav ul li a + a #app-qrcode::after {
  content: "小米商城APP";
  position: absolute;
  display: block;
  z-index: 9999;
  font-size: 14px;
  top: 100px;
}
header nav ul li a + a #app-qrcode::before {
  content: "";
  width: 0px;
  height: 0px;
  position: absolute;
  border-color: transparent transparent white transparent;
  border-width: 10px;
  border-style: solid;
  top: -20px;
}
header nav ul li a + a #app-qrcode img {
  display: block;
  width: 90px;
  height: 90px;
  margin-top: 10px;
  margin-bottom: 25px;
  position: relative;
}
header nav .btns {
  margin-right: 20px;
  display: flex;
}
header nav .btns a {
  color: #b0b0b0;
  font-size: 12px;
  margin: auto 5px;
}
header nav .btns a:hover {
  color: white;
}
header nav .btns .shopping-car {
  width: 120px;
  height: 40px;
  line-height: 40px;
  background-color: #424242;
  color: #b0b0b0;
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
header nav .btns .shopping-car span {
  margin-left: 10px;
}
header nav .btns .shopping-car div + div {
  position: absolute;
  cursor: pointer;
  width: 260px;
  height: 110px;
  right: -4px;
  top: 40px;
  overflow: hidden;
  z-index: -1;
}
header nav .btns .shopping-car div + div div {
  width: 250px;
  box-sizing: border-box;
  height: 100px;
  margin-left: 5px;
  transform: translateY(-100%);
  transition: 0.5s;
  background-color: white;
  box-shadow: 0 0 5px #ddd;
  line-height: 100px;
  text-align: center;
  color: black;
}
header nav .btns .shopping-car:hover {
  cursor: pointer;
}
header nav .btns .shopping-car:hover div > i {
  color: white;
}
header nav .btns .shopping-car:hover > div:last-child {
  z-index: 1;
  cursor: pointer;
}
header nav .btns .shopping-car:hover > div:last-child div {
  transform: translateY(0);
}
header .links {
  display: flex;
  height: 100px;
  align-items: center;
  justify-content: space-between;
}
header .links > a {
  margin-left: 20px;
  width: 55px;
  height: 55px;
  background: url('../imgs/mi-logo.png') no-repeat;
  background-size: cover;
  background-color: #ff6700;
}
header .links > a:hover {
  background-image: url('../imgs/mi-home.png');
}
header .links ul {
  display: flex;
}
header .links ul li a {
  font-size: 16px;
  padding: 0 10px;
  color: #525050;
}
header .links ul li div {
  position: absolute;
  width: 100%;
  height: 200px;
  left: 0px;
  top: 261px;
  overflow: hidden;
  cursor: pointer;
}
header .links ul li div > ul {
  box-sizing: border-box;
  border-bottom: 1px solid #ddd;
  position: absolute;
  background-color: white;
  width: 100%;
  height: 200px;
  z-index: -999;
  display: flex;
  overflow: hidden;
  transform: translateY(-100%);
  transition: 1s;
}
header .links ul li div > ul > li:last-child::after {
  content: '';
  border: none;
}
header .links ul li div > ul li {
  position: relative;
  list-style: none;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  width: 16.66%;
  height: 100%;
}
header .links ul li div > ul li::after {
  content: '';
  width: 0;
  height: 70px;
  border-right: 1px solid #ddd;
  position: absolute;
  top: 36px;
  left: 208px;
}
header .links ul li div > ul li img {
  width: 160px;
  height: 110px;
}
header .links ul li div > ul li span {
  font-size: 12px;
  align-self: center;
}
header .links ul li div > ul li span:first-of-type {
  margin-top: 20px;
  color: #6b6b6b;
}
header .links ul li div > ul li span:last-of-type {
  margin-top: 12px;
}
header .links ul li div > ul li .price {
  color: #ff6700;
}
header .links ul a:hover {
  color: #ff6700;
}
header .links ul a:hover + div > ul {
  z-index: 999;
  display: flex;
  transform: translateY(0);
  border-bottom: 1px solid #ddd;
}
header .links ul a:hover + div > ul li {
  display: flex;
  cursor: pointer;
}
header .links ul + div {
  margin-right: 20px;
  display: flex;
}
header .links ul + div input {
  width: 245px;
  height: 50px;
  box-sizing: border-box;
  padding-left: 20px;
  font-size: 14px;
  outline: none;
  border: 1px solid #ddd;
}
header .links ul + div input:focus {
  border-color: #ff6700;
}
header .links ul + div i {
  display: block;
  box-sizing: border-box;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #ddd;
  border-left: none;
  cursor: pointer;
}
header .links ul + div i:hover {
  border-color: #ff6700;
  background-color: #ff6700;
  color: white;
}
header + div {
  display: flex;
  flex-flow: column;
}
header + div main {
  display: flex;
  margin-top: 2px;
  flex-direction: row;
  margin-left: 20px;
  position: relative;
}
header + div main .main-left {
  height: 460px;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 2;
}
header + div main .main-left div {
  width: 200px;
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 20px;
  font-size: 16px;
  cursor: pointer;
}
header + div main .main-left div:hover {
  background-color: #ff6700;
}
header + div main .swiper {
  flex-grow: 1;
  height: 460px;
  overflow: hidden;
  margin-right: 20px;
  margin-bottom: 20px;
}
header + div main .swiper ul {
  animation-name: swipermove;
  animation-duration: 10s;
  animation-iteration-count: infinite;
  animation-fill-mode: forwards;
  animation-timing-function: steps(5, end);
  display: flex;
}
@keyframes swipermove {
  to {
    transform: translateX(-6130px);
  }
}
header + div main .swiper ul li a {
  cursor: pointer;
}
header + div main .swiper ul li a img {
  display: block;
  height: 460px;
}
header + div .cardgroup {
  height: 170px;
  display: flex;
  margin-left: 20px;
  margin-right: 20px;
  justify-content: space-between;
}
header + div .cardgroup > div:not(header + div .cardgroup > div:first-child) {
  cursor: pointer;
}
header + div .cardgroup > div:first-child {
  background-color: #5f5750;
  width: 228px;
  height: 170px;
  display: flex;
  flex-flow: row wrap;
  align-content: center;
}
header + div .cardgroup > div:first-child li {
  list-style: none;
  display: block;
  width: 33%;
  height: 50%;
  position: relative;
  cursor: pointer;
}
header + div .cardgroup > div:first-child li:nth-child(1) {
  background: url('../imgs/小米秒杀.png') no-repeat center 30%;
  background-size: 24px 24px;
}
header + div .cardgroup > div:first-child li:nth-child(1) a {
  font-size: 12px;
  color: #d1d0d0;
}
header + div .cardgroup > div:first-child li:nth-child(1) a::after {
  content: '小米秒杀';
  top: 55%;
  left: 18%;
  position: absolute;
}
header + div .cardgroup > div:first-child li:nth-child(1):hover {
  filter: drop-shadow(white 0px 0);
}
header + div .cardgroup > div:first-child li:nth-child(2) {
  background: url('../imgs/企业团购.png') no-repeat center 30%;
  background-size: 24px 24px;
}
header + div .cardgroup > div:first-child li:nth-child(2) a {
  font-size: 12px;
  color: #d1d0d0;
}
header + div .cardgroup > div:first-child li:nth-child(2) a::after {
  content: '企业团购';
  top: 55%;
  left: 18%;
  position: absolute;
}
header + div .cardgroup > div:first-child li:nth-child(2):hover {
  filter: drop-shadow(white 0px 0);
}
header + div .cardgroup > div:first-child li:nth-child(3) {
  background: url('../imgs/F码通道.png') no-repeat center 30%;
  background-size: 24px 24px;
}
header + div .cardgroup > div:first-child li:nth-child(3) a {
  font-size: 12px;
  color: #d1d0d0;
}
header + div .cardgroup > div:first-child li:nth-child(3) a::after {
  content: 'F码通道';
  top: 55%;
  left: 18%;
  position: absolute;
}
header + div .cardgroup > div:first-child li:nth-child(3):hover {
  filter: drop-shadow(white 0px 0);
}
header + div .cardgroup > div:first-child li:nth-child(4) {
  background: url('../imgs/米粉卡.png') no-repeat center 30%;
  background-size: 24px 24px;
}
header + div .cardgroup > div:first-child li:nth-child(4) a {
  font-size: 12px;
  color: #d1d0d0;
}
header + div .cardgroup > div:first-child li:nth-child(4) a::after {
  content: '米粉卡';
  top: 55%;
  left: 26%;
  position: absolute;
}
header + div .cardgroup > div:first-child li:nth-child(4):hover {
  filter: drop-shadow(white 0px 0);
}
header + div .cardgroup > div:first-child li:nth-child(5) {
  background: url('../imgs/以旧换新.png') no-repeat center 30%;
  background-size: 24px 24px;
}
header + div .cardgroup > div:first-child li:nth-child(5) a {
  font-size: 12px;
  color: #d1d0d0;
}
header + div .cardgroup > div:first-child li:nth-child(5) a::after {
  content: '以旧换新';
  top: 55%;
  left: 18%;
  position: absolute;
}
header + div .cardgroup > div:first-child li:nth-child(5):hover {
  filter: drop-shadow(white 0px 0);
}
header + div .cardgroup > div:first-child li:nth-child(6) {
  background: url('../imgs/话费充值.png') no-repeat center 30%;
  background-size: 24px 24px;
}
header + div .cardgroup > div:first-child li:nth-child(6) a {
  font-size: 12px;
  color: #d1d0d0;
}
header + div .cardgroup > div:first-child li:nth-child(6) a::after {
  content: '话费充值';
  top: 55%;
  left: 18%;
  position: absolute;
}
header + div .cardgroup > div:first-child li:nth-child(6):hover {
  filter: drop-shadow(white 0px 0);
}
header + div .cardgroup > div:nth-child(2) {
  width: 316px;
  height: 170px;
  background: url('../imgs/cardgroup1.jpg') no-repeat;
  background-size: cover;
}
header + div .cardgroup > div:nth-child(2):hover {
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}
header + div .cardgroup > div:nth-child(3) {
  width: 316px;
  height: 170px;
  background: url('../imgs/cardgroup2.jpg') no-repeat;
  background-size: cover;
}
header + div .cardgroup > div:nth-child(3):hover {
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}
header + div .cardgroup > div:nth-child(4) {
  width: 316px;
  height: 170px;
  background: url('../imgs/cardgroup3.jpg') no-repeat;
  background-size: cover;
}
header + div .cardgroup > div:nth-child(4):hover {
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}
header + div .mi-second {
  padding: 10px 20px;
  margin-top: 20px;
  background-color: #f5f5f5;
}
header + div .mi-second > div {
  display: flex;
  flex-direction: column;
}
header + div .mi-second > div > .title {
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header + div .mi-second > div > .title span {
  font-size: 22px;
  font-weight: 200;
  color: #333;
}
header + div .mi-second > div > .title .btns i {
  color: #444343;
}
header + div .mi-second > div > .title .btns i:first-child {
  color: #636161;
}
header + div .mi-second > div > .title .btns i {
  margin: 0px;
  padding: 5px 16px;
  border: 2px solid #ddd;
  cursor: pointer;
}
header + div .mi-second > div .title + div {
  display: flex;
  justify-content: space-between;
}
header + div .mi-second > div .title + div > div:nth-child(1) {
  border-top: 1px solid #e53935;
  width: 18%;
  height: 340px;
  background-color: #f1eded;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
header + div .mi-second > div .title + div > div:nth-child(1) > span:nth-of-type(1) {
  color: #ff6700;
  font-size: 21px;
  margin-bottom: 30px;
  font-weight: bold;
}
header + div .mi-second > div .title + div > div:nth-child(1) i {
  color: #ff6700;
  transform: rotate(20deg);
  font-weight: bold;
  margin-bottom: 30px;
}
header + div .mi-second > div .title + div > div:nth-child(1) > span:nth-of-type(2) {
  font-size: 15px;
  color: rgba(0, 0, 0, 0.54);
  margin-bottom: 26px;
}
header + div .mi-second > div .title + div > div:nth-child(1) span + div {
  font-size: 28px;
}
header + div .mi-second > div .title + div > div:nth-child(1) span + div span {
  display: inline-block;
  color: white;
  line-height: 46px;
  width: 46px;
  height: 46px;
  background-color: #605751;
  font-size: 24px;
  text-align: center;
}
header + div .mi-second > div .title + div > div:nth-child(n+2) {
  cursor: pointer;
  width: 18%;
  height: 340px;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
header + div .mi-second > div .title + div > div:nth-child(n+2):hover {
  box-shadow: 0 0 5px rgba(0, 0, 3, 0.2);
}
header + div .mi-second > div .title + div > div:nth-child(n+2) .thump img {
  width: 160px;
  height: 160px;
}
header + div .mi-second > div .title + div > div:nth-child(n+2) h3 {
  align-self: center;
  font-size: 14px;
  font-weight: 400;
  color: #212121;
  margin-top: 20px;
  overflow: hidden;
  width: 80%;
  margin: 20px auto;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
header + div .mi-second > div .title + div > div:nth-child(n+2) p:nth-of-type(1) {
  color: #b0b0b0;
  font-size: 12px;
  margin-bottom: 12px;
  margin-top: 10px;
}
header + div .mi-second > div .title + div > div:nth-child(n+2) p:nth-of-type(2) {
  color: #ff6700;
  font-size: 14px;
}
header + div .mi-second > div .title + div > div:nth-child(n+2) p:nth-of-type(2) del {
  color: #b0b0b0;
}
header + div .mi-second > div .title + div > div:nth-child(2) {
  border-top: 1px solid #ecae27;
}
header + div .mi-second > div .title + div > div:nth-child(3) {
  border-top: 1px solid #36b616;
}
header + div .mi-second > div .title + div > div:nth-child(4) {
  border-top: 1px solid #27aeec;
}
header + div .mi-second > div .title + div > div:nth-child(5) {
  border-top: 1px solid #ec4427;
}
header + div .banner {
  display: block;
  padding: 20px;
  background-color: #f5f5f5;
}
header + div .banner img {
  width: 100%;
  height: 100%;
}
header + div .mi-phone {
  padding: 0px 20px;
  background-color: #f5f5f5;
}
header + div .mi-phone > div {
  display: flex;
  flex-direction: column;
}
header + div .mi-phone > div > .title {
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header + div .mi-phone > div > .title span {
  font-size: 22px;
  font-weight: 200;
  color: #333;
}
header + div .mi-phone > div > .title .btns {
  cursor: pointer;
}
header + div .mi-phone > div > .title .btns span {
  font-size: 16px;
}
header + div .mi-phone > div > .title .btns i {
  color: #444343;
}
header + div .mi-phone > div > .title .btns i:first-child {
  color: #636161;
}
header + div .mi-phone > div > .title .btns i {
  margin: 0px;
  padding: 5px 6px;
  cursor: pointer;
}
header + div .mi-phone > div > .title .btns:hover i {
  color: #ff6700;
}
header + div .mi-phone > div > .title .btns:hover span {
  color: #ff6700;
}
header + div .mi-phone > div > .title + div {
  display: flex;
  flex-direction: row;
}
header + div .mi-phone > div > .title + div > div.left a img {
  width: 234px;
  height: 614px;
}
header + div .mi-phone > div > .title + div > div.right {
  flex: 1;
  margin-left: 20px;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: center;
  height: 614px;
}
header + div .mi-phone > div > .title + div > div.right > div {
  width: 23%;
  height: 48%;
  cursor: pointer;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
header + div .mi-phone > div > .title + div > div.right > div:hover {
  box-shadow: 0 0 5px rgba(0, 0, 3, 0.2);
}
header + div .mi-phone > div > .title + div > div.right > div .thump img {
  width: 160px;
  height: 160px;
}
header + div .mi-phone > div > .title + div > div.right > div h3 {
  align-self: center;
  font-size: 14px;
  font-weight: 400;
  color: #212121;
  overflow: hidden;
  width: 80%;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
header + div .mi-phone > div > .title + div > div.right > div p:nth-of-type(1) {
  color: #b0b0b0;
  font-size: 12px;
  margin-bottom: 12px;
  margin-top: 10px;
}
header + div .mi-phone > div > .title + div > div.right > div p:nth-of-type(2) {
  color: #ff6700;
  font-size: 14px;
}
header + div .mi-phone > div > .title + div > div.right > div p:nth-of-type(2) del {
  color: #b0b0b0;
}
footer {
  display: flex;
  flex-flow: column;
  padding: 20px;
}
footer ul {
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  display: flex;
  justify-content: space-around;
}
footer ul li {
  border-right: 1px solid #ddd;
  cursor: pointer;
  flex: 1;
  text-align: center;
  font-size: 16px;
}
footer ul li:last-child {
  border-right: none;
}
footer ul li:hover a {
  color: #ff6700;
}
footer ul li:hover i {
  color: #ff6700;
}
footer ul li i {
  margin-right: 5px;
}
footer .footer-links {
  margin-top: 40px;
  display: flex;
}
footer .footer-links > div {
  height: 172px;
}
footer .footer-links > div:nth-child(-n+6) {
  flex: 13.33;
}
footer .footer-links > div:nth-child(-n+6) > div {
  font-size: 14px;
  margin-bottom: 20px;
}
footer .footer-links > div:nth-child(-n+6) div + div p {
  font-size: 12px;
  line-height: 20px;
}
footer .footer-links > div:last-child {
  height: 210px;
  flex: 20;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-flow: column;
}
footer .footer-links > div:last-child > p:nth-of-type(1) {
  color: #ff6700;
  font-size: 22px;
  margin-bottom: 6px;
}
footer .footer-links > div:last-child > p:nth-of-type(2) {
  font-size: 12px;
  color: #616161;
  margin-bottom: 5px;
}
footer .footer-links > div:last-child a {
  display: block;
  width: 118px;
  height: 28px;
  border: 1px solid #ff6700;
  display: flex;
  justify-content: center;
  margin: 10px auto;
  align-items: center;
}
footer .footer-links > div:last-child a:hover {
  background-color: #ff6700;
  color: white;
}
footer .footer-links > div:last-child a span {
  font-size: 12px;
}
footer .footer-links > div:last-child > p:nth-of-type(3) {
  cursor: pointer;
}
footer .footer-links > div:last-child > p:nth-of-type(3):hover {
  color: #ff6700;
}
footer .footer-links > div:last-child > p:nth-of-type(3):hover span {
  color: #ff6700;
  font-weight: bold;
}
footer .footer-links > div:last-child > p:nth-of-type(3) span {
  font-size: 12px;
  color: #616161;
  margin-right: 3px;
}
footer .site-info {
  padding: 30px 0;
  background-color: #fafafa;
  display: flex;
}
footer .site-info img {
  width: 57px;
  height: 57px;
  background-color: #ff6700;
  margin-right: 20px;
}
footer .site-info img + div {
  font-size: 12px;
  margin-right: 100px;
}
footer .site-info img + div p:first-child {
  color: #757575;
}
footer .site-info img + div p:last-child {
  color: #b0b0b0;
}
